package file

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

// FileRouter 文件上传相关路由信息
type FileRouter struct{}

func (f *FileRouter) InitFileRouter(Router *gin.RouterGroup) {
	fileRouter := Router.Group("upload").Use(middleware.JWTAuth())
	{
		fileRouter.POST("image", fileApi.UploadImageFile) // 上传图片，使用查询参数
	}
}
